<?php


abstract class Globals {
    const SF_ENVIRONMENT_PROD = 'prod';
    const SF_ENVIRONMENT_DEV = 'dev';
    const SF_ENVIRONMENT_TEST = 'test';

    const SYSTEM_USER_ID = 0;

    const DISPLAY_PRODUCT_LIMIT = 6;
    const QUERY_NEW_PRODUCT_LIMIT = 100;

    const FULL_DATETIME_FORMAT = 'l j F, Y';

    const LINK_PRODUCTS_NEW = 'products_new';
    const LINK_PRODUCTS_SPECIAL = 'special';
    const LINK_PRODUCTS_ALL = 'products_all';
    const LINK_PRODUCTS_REVIEWS = 'reviews';

    /***************************************/
    /*****       PRODUCT OPTIONS      ******/
    /***************************************/
    const DISP_ORDER_PRODUCT_NAME = 1;
    const DISP_ORDER_PRICE_LOW_TO_HIGH = 2;
    const DISP_ORDER_PRICE_HIGH_TO_LOW = 3;
    const DISP_ORDER_DATE_ADDED_NEW_TO_OLD = 4;
    const DISP_ORDER_DATE_ADDED_OLD_TO_NEW = 5;

    /***************************/
    /*****    OTHERS      ******/
    /***************************/
    const GOOGLE_ANALYTIC = 'GOOGLE ANALYTIC';
    const CUSTOMER_SERVICE_CONTACT = "CUST_SERVICE_CONTACT";
    const CUSTOMER_SERVICE_ADDRESS = "CUST_SERVICE_ADDRESS";
    const CUSTOMER_SERVICE_EMAIL = "CUST_SERVICE_EMAIL";
    const SESSION_ADMIN_MENU_IDX = "SESSION_ADMIN_MENU_IDX";
    const SETTING_BACKGROUND_IMAGE = "SETTING_BACKGROUND_IMAGE";

    const DB_YES = 1;
    const DB_NO = 0;

    /*************************/
    /*****    ROLE      ******/
    /*************************/
    const ROLE_MEMBER = "MEMBER";
    const ROLE_ADMIN = "ADMIN";
    const ROLE_SUPERADMIN = 'SUPERADMIN';

    /*************************/
    /*****    SESSION   ******/
    /*************************/
    const SESSION_MEMBERID = "MEMBERID";
    const SESSION_USERID = "USERID";
    const SESSION_USERNAME = "USERNAME";
    const SESSION_FULLNAME = "FULLNAME";
    const SESSION_USERROLE = "USERROLE";

    const SESSION_ADMINID = "ADMINID";
    const SESSION_USERTYPE = "USERTYPE";

    /************************************/
    /*****       SESSION CART      ******/
    /************************************/
    const SESSION_CART_ITEMS = "CART_ITEMS";
    const SESSION_CART_TOTAL_ITEM = "CART_TOTAL_ITEM";
    const SESSION_NEED_LOGIN = "NEED_LOGIN";
    const SESSION_REFERER_URL = "REFERER_URL";

    /************************************/
    /*****     SESSION CHECKOUT    ******/
    /************************************/
    const SESSION_CHECKOUT_DELIVERY_ADDRESS_ID = "CHECKOUT_DELIVERY_ADDRESS_ID";
    const SESSION_CHECKOUT_DELIVERY_GROUP_ID = "CHECKOUT_DELIVERY_GROUP_ID";
    const SESSION_CHECKOUT_DELIVERY_COMMENTS = "CHECKOUT_DELIVERY_COMMENTS";
    const SESSION_CHECKOUT_PAYMENT_METHOD = "CHECKOUT_PAYMENT_METHOD";
    const SESSION_CHECKOUT_PAYMENT_COMMENTS = "CHECKOUT_PAYMENT_COMMENTS";

    /***********************/
    /*****    EMAIL   ******/
    /***********************/
    const EMAIL_HOST = "EMAIL_HOST";
    const EMAIL_FROM_NOREPLY = "EMAIL_FROM_NOREPLY";
    const EMAIL_FROM_NOREPLY_NAME = "EMAIL_FROM_NOREPLY_NAME";

    /************************************/
    /*****          STATUS         ******/
    /************************************/
    const STATUS_ACTIVE = 'ACTIVE';
    const STATUS_INACTIVE = 'INACTIVE';
    const STATUS_COMPLETE = 'COMPLETE';

    const REVIEW_STATUS_ACTIVE = 'ACTIVE';
    const REVIEW_STATUS_PENDING = 'PENDING';

    const ORDER_STATUS_PENDING = 'PENDING';
    const ORDER_STATUS_CONFIRM = 'CONFIRM';
    const ORDER_STATUS_CANCEL = 'CANCEL';
    const ORDER_STATUS_DELIVERED = 'DELIVERED';

    const ORDER_DETAIL_STATUS_ACTIVE = 'ACTIVE';
    const ORDER_DETAIL_STATUS_CANCEL = 'CANCEL';
    const ORDER_DETAIL_STATUS_COMPLETED = 'COMPLETED';
}